﻿@model AgileZen.Models.Person

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<fieldset>
    <legend>Person</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">UserName</div>
    <div class="display-field">@Model.UserName</div>

    <div class="display-label">Bio</div>
    <div class="display-field">@Model.Bio</div>

    <div class="display-label">Email</div>
    <div class="display-field">@Model.Email</div>

    <div class="display-label">Email</div>
    <div class="display-field">
@foreach (var story in Model.Stories)
{ 
        @story.Text<br/>
}
</div>
</fieldset>
<p>
    @Html.ActionLink("Stories", "Stories") |

    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>

